import { request, requestMock } from "@/request";

//1.交易页详情
export const reqTradeInfo = () => {
  return request.get(`/api/order/auth/trade`);
};
//2.用户地址的请求
export const reqAddress = () => {
  return requestMock.get(`/api/address`);
};
//3.提交订单
export const reqSubmitOrder = (tradeNo, tradeInfo) => {
  return request.post(
    `/api/order/auth/submitOrder?tradeNo=${tradeNo}`,
    tradeInfo
  );
};
